<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="/WEB-INF/page-base.tld" prefix="p"%>

<script>
function dept_sort(){
	var opt=$getById("seldeptIds",$w.currWin()).get(0);
	if(opt.options.length>0){
		comboxOperator.selectAll(opt);
		return $w.doWinForm(dept_sortcallback);
	}
	else{
		$w.closeCurrWin();
		return false;
	}
}
function dept_sortcallback(json){
	if(json.state=='ok'){
		$w.closeCurrWin();
		tree_reloadOpen("deptmain_tree");
	}
}
</script>

		<form method="post" action="/platform/dept/DeptPage.page">
			<p:hidden bind="actions"/>
			<table width="100%">
			<tr>
			<td>
			<select name="deptIds" id="seldeptIds"style="width:180px;height:230px" multiple="true">
                <p:iterate id="menu" bind="subDeptList">
                    <option value="<p:write bind="#menu.deptid"/>"><p:write bind="#menu.deptname"/></option>
               </p:iterate>
               </select>
			</td>
			<td valign="top">
			<div style="float:left;margin-top:25px;margin-left:10px;">
				<a href="#" class="easyui-linkbutton" onclick="comboxOperator.up(document.getElementById('seldeptIds'));">上移</a>
				<a href="#" class="easyui-linkbutton" onclick="comboxOperator.down(document.getElementById('seldeptIds'));" style="margin-top:12px">下移</a>
				<a href="#" class="easyui-linkbutton" onclick="dept_sort()" style="margin-top:12px">确定</a>
				<a href="#" class="easyui-linkbutton" onclick="$w.closeCurrWin()" style="margin-top:12px">取消</a>
			</div>
			</td>
			</tr>
			</table>
		</form>